<?php
require_once $_SERVER['DOCUMENT_ROOT'].'/model/DAO/mysql/filters/Filter.php';

class EntityIdentityFilter implements Filter {
	private $identity;

	public function __construct($identity) {
		$this->identity = (int) $identity;
	}

	public function apply($entity) {
		return $entity->getIdentity() === $this->identity;
	}
}
?>